<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <script src="js/jquery-3.3.1.js"></script>
    <script src="js/5.js"></script>
    <title>Title</title>

</head>
<body>


<img class="pimg" style="border:1px solid red;float:left;"
     src="images/2.jpg" width="400" />

<div class="bimg"
     style="z-index:9999;display:none;float:left;width:400px;height:400px;
     border:1px solid red;background:url(images/2.jpg) no-repeat"></div>

</body>
</html>